import request from '@/utils/request'

export const getCaptchaImage = () => {
  return request.get('/captcha/image')
}

export const sendSmsCaptcha = (obj) => {
  return request.post('/captcha/sendSmsCaptcha', { form: obj })
}

export const loginService = (obj) => {
  return request.post('/passport/login', { form: obj }, { headers: { platform: 'H5' } })
}

export const getUserInfo = () => {
  return request.get('/user/info')
}

export const getUserAssets = () => {
  return request.get('/user/assets')
}
